import request from '@/utils/request'

export function getTenderInfoNotApproved(data) {
  return request({
    url: '/getTenderInfoNotApproved',
    method: 'get',
    params:data
  })
}

export function getAllTenderInfoHasAppliedByPurchaserId(data) {
  return request({
    url: '/getAllTenderInfoHasAppliedByPurchaserId',
    method: 'get',
    params:data
  })
}

export function getTenderProduct(data) {
  return request({
    url: '/getTenderProduct',
    method: 'get',
    params:data
  })
}

export function getCompeteTenderRecords(data) {
  return request({
    url: '/getCompeteTenderRecords',
    method: 'get',
    params:data
  })
}

export function getAllCompeteInfos(data) {
  return request({
    url: '/getAllCompeteInfos',
    method: 'get',
    params:data
  })
}

export function getAllTenderApplyByPurchaserId(data) {
  return request({
    url: '/getAllTenderApplyByPurchaserId',
    method: 'get',
    params:data
  })
}

export function getAllTenderInfoCanBeSelected(data) {
  return request({
    url: '/getAllTenderInfoCanBeSelected',
    method: 'get',
    params:data
  })
}


export function commitTender(data) {
  return request({
    url: '/commitTender',
    method: 'put',
    data
  })
}

export function delUnCommitTender(data) {
  return request({
    url: '/delUnCommitTender',
    method: 'delete',
    params: data
  })
}

export function verifyTenderApply(data) {
  return request({
    url: '/verifyTenderApply',
    method: 'put',
    data
  })
}

export function fixTender(data) {
  return request({
    url: '/fixTender',
    method: 'post',
    data
  })
}

export function revokeSelect(data) {
  return request({
    url: '/revokeSelect',
    method: 'post',
    data
  })
}
